<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form class="form-horizontal table-form" name="form1" id="form1" method="post" action="dirMsgTaskLog.action"  onsubmit="return navTabSearch(this,'dirMsgTaskLog')">
    <input type="hidden" name="page.orderFlag" id="page.orderFlag" class="order-flag" value="<ww:property value='page.orderFlag'/>"> 
	<input type="hidden" name="page.orderString" id="page.orderString" class="order-string" value="<ww:property value='page.orderString'/>">
	<input type="hidden" name="page.pageSize" class="page-size" value="<ww:property value='page.pageSize'/>">
	<input type="hidden" name="page.totalPages" class="page-count" value="<ww:property value='page.totalPages'/>">
	<input type="hidden" name="page.currentPage" class="page-current" value="<ww:property value='page.currentPage'/>">
	<input type="hidden" name="uuid" value="<ww:property value='uuid'/>">
	
	<div class="table-header">
		<div class="table-search">
			<ul>
				<li><input class="input-medium" type="text" id="sender" name="sender" maxlength="50"  placeholder="请输入发送方" value="<ww:property value='sender'/>"></li>
				<li><input class="input-medium" type="text" id="receiver" name="receiver" maxlength="50"  placeholder="请输入接收方" value="<ww:property value='receiver'/>"></li>
				<li><input class="input-medium" type="text" id="serverIp" name="serverIp" maxlength="50"  placeholder="服务器ip" value="<ww:property value='serverIp'/>"></li>
			    <li>状态：<ww:select attributes="class='input-small'" name="'msgStatus'" id="msgStatus" value="msgStatus"  list="#dictID.getDictListQuery('msg_d_msgstatus')" listKey="code" listValue="name"></ww:select> </li>
			    <li><input class="input-small Wdate" id="beginTime" name="beginTime" readonly="true" type="text" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM-dd').format(beginTime)"/>'> 
			    至 <input class="input-small Wdate" id="endTime" name="endTime" readonly="true" type="text" onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginTime\')}'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM-dd').format(endTime)"/>'></li>
			    
			    <li><ww:button css="btn green" caption="查询" funcode="msgcenter_msglog/dirMsgTaskLog" type="submit"></ww:button></li>
			</ul>
		</div>
		<div class="table-btn">
		</div>
	</div>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th width="100px" order-field="a.sender" class="order">发送方</th>
				<th width="100px" order-field="a.receiver" class="order">接收方</th>
				<th width="50px" order-field="a.msgType" class="order">消息类型</th>
				<th width="100" order-field="a.serverIp" class="order">服务器ip</th>
				<th width="50px" order-field="a.msgStatus" class="order">消息状态</th>
				<th width="100px" order-field="a.createTime" class="order">创建时间</th>
				<th width="20px"></th>
			</tr>
		</thead>
		<tbody>
		  <ww:iterator value="page.results" id="data" status="data">
			<tr>
				<td class="text-center"><ww:property value="sender"/></td>
				<td class="text-center"><ww:property value="receiver"/></td>
				<td class="text-center"><ww:property value="#dictID.getDictType('msg_d_msgtype',msgType).name"/></td>
				<td class="text-center"><ww:property value="serverIp"/></td>
				<td class="text-center"><ww:property value="#dictID.getDictType('msg_d_msgstatus',msgStatus).name"/></td>
				<td class="text-center"><ww:property value="new java.text.SimpleDateFormat('yy-MM-dd HH:mm').format(createTime)"/></td>
				<td class="text-center iconspage"><span class="expand"><i class="icon_arrow_down"></i></span></td>
			</tr>
			<tr class="sub"><td colspan="9">taskId：<ww:property value="taskId"/><br/>消息状态信息：<ww:property value="msgStatusInfo"/></td></tr>
			</ww:iterator>
		</tbody>
	</table>
	<div class="pagination"> <ww:property value="page.pageSplit"/></div>
</form>

